package com.vmj.classfile.entity.attribute;

import com.vmj.classfile.ClassReader;

/**
 * Created by yangshoujun on 2017/8/6 下午3:34.
 */
public class ConstantValueAttribute extends AbstractAttribute {

    int constantValueIndex;

    public ConstantValueAttribute(ClassReader classReader) {
        super(classReader);
    }

    public void parse() {
        constantValueIndex = getClassReader().readTwoByte();
    }

    public int getConstantValueIndex() {
        return constantValueIndex;
    }
}
